package bb.lanxing.mvvm.base;


public interface IPermissionInspector {

    public interface PermissionRationaleCallback {
        void onRequestRationale(PermissionRationaleConfirmCallback permissionRationaleConfirmCallback);

        void onUnShowRationale();
    }

    public interface PermissionRationaleConfirmCallback {
        String[] getCurrentRequiredPermissions();

        void onRequestRationaleConfirmed();
    }

    boolean checkAndRequestPermissions(String[] strArr, int i);

    boolean checkAndRequestPermissions(String[] strArr, CharSequence charSequence);

    boolean checkAndRequestPermissionsWithRationale(String[] strArr, PermissionRationaleCallback permissionRationaleCallback);
}
